package com.hjxr.quota.define.controller;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.hjxr.quota.define.domain.QuotaFormulaOperator;
import com.hjxr.quota.define.service.IFormulaOperatorService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/formulaOperator")
public class FormulaOperatorController extends ApiController {

    @Resource
    private IFormulaOperatorService formulaOperatorService;

    @GetMapping("/getAllFormulaOperator")
    @ApiOperation(value = "查询所有运算符")
    public R<List<QuotaFormulaOperator>> getAllFormulaOperator() {
        return success(formulaOperatorService.getAllFormulaOperator());
    }

}
